package com.pioneer.beans.invoice;

import java.util.Date;
import java.util.Vector;

import com.pioneer.gui.invoice.util.Constants;
import com.pioneer.gui.invoice.util.DropDownDataFactory;

public class InvoiceHeaderModel
implements Constants
{	
	
    private String invoiceId;
    private int cusId;
    private String name;
    private Date date;
    private String type;
    private String typeDesc;
    private String entryStatus;
    private String entryStatusDesc;
    private int smanId;
    private String smanName;
    private float subTotal;
    private float discount;
    private float total;
    private float balance;
    private String shipVia;
    private String terms;
    private String shipAddress;
    private String shipCity;
    private String shipState;
    private String shipZip;
    private String shipPhone;
    private String shipFax;
    private String billAddress;
    private String billCity;
    private String billState;
    private String billZip;
    private String billPhone;
    private String billFax;
    
    public InvoiceHeaderModel()
    {
		this.invoiceId="";
    	this.cusId=0;
    	this.name="";
    	this.date=new Date();
    	this.type="INV";
    	this.typeDesc="Invoice";
    	this.entryStatus="E";
    	this.entryStatusDesc="Entered";
    	this.smanId=0;
    	this.smanName="";
    	this.subTotal=0;
    	this.discount=0;
    	this.total=0;
    	this.balance=0;
    	this.shipVia="";
    	this.terms="";
    	this.shipAddress="";
    	this.shipCity="";
    	this.shipState="";
    	this.shipZip="";
    	this.shipPhone="";
    	this.shipFax="";
    	this.billAddress="";
    	this.billCity="";
    	this.billState="";
    	this.billZip="";
    	this.billPhone="";
    	this.billFax="";
    }
            
    public InvoiceHeaderModel(String invoiceId, int cusId, String name, Date date, 
    String type, String typeDesc, String entryStatus, String entryStatusDesc, 
    int smanId, String smanName, float subTotal, float discount, float total, float balance, String shipVia, 
    String terms, String shipAddress, String shipCity, String shipState, String shipZip, String shipPhone, 
    String shipFax, String billAddress, String billCity,
    String billState, String billZip, String billPhone, String billFax)
    {
    	DropDownDataFactory dropDownDataFactory=new DropDownDataFactory();    	
        this.invoiceId=invoiceId;
        this.cusId=cusId;
        this.name=name;
        this.date=date;
        this.type=type;
        this.typeDesc=typeDesc;
        //this.typeVector=dropDownDataFactory.getVector(INVOICE_TYPE);
        this.entryStatus=entryStatus;
        this.entryStatusDesc=entryStatusDesc;
        //this.entryStatusVector=dropDownDataFactory.getVector(ENTRY_STATUS);
        this.smanId=smanId;
        this.smanName=smanName;
        this.subTotal=subTotal;
        this.discount=discount;
        this.total=total;
        this.balance=balance;
        this.shipVia=shipVia;
        this.terms=terms;
        this.shipAddress=shipAddress;
        this.shipCity=shipCity;
        this.shipState=shipState;
        this.shipZip=shipZip.trim();
        this.shipPhone=shipPhone;
        this.shipFax=shipFax;
        this.billAddress=billAddress;
        this.billCity=billCity;
        this.billState=billState;
        this.billZip=billZip.trim();
        this.billPhone=billPhone;
        this.billFax=billFax;
        
    }
    
    public String getInvoiceId()
    {
    	return this.invoiceId;
    }
    
    public int getCusId()
    {
    	return this.cusId;
    }
    
    public String getName()
    {
    	return this.name;
    }
    
    public Date getDate()
    {
    	return this.date;
    }
    
    public String getType()
    {
    	return this.type;
    }
    
    public String getTypeDesc()
    {   
        return this.typeDesc;
    	/*String result="";
    	for (int i=0;i<this.typeVector.size();i++)
    	{    		
    		Object [] element=(Object [])typeVector.get(i);
    		if (element[0].equals(this.type))
    		result=element[1].toString();
    	}    	
    	return result;*/
    }
    
    public String getEntryStatus()
    {
    	return this.entryStatus;
    }
    
    public String getEntryStatusDesc()
    {
        return this.entryStatusDesc;
    	/*String result="";
    	for (int i=0;i<this.entryStatusVector.size();i++)
    	{    		
    		Object [] element=(Object [])entryStatusVector.get(i);    		
    		if (element[0].equals(this.entryStatus))
    		result=element[1].toString();
    	}
    	return result;*/
    }
    
    public int getSmanId()
    {
    	return this.smanId;
    }
    
    public String getSmanName()
    {
    	return this.smanName;
    }
    
    public float getSubTotal()
    {
    	return this.subTotal;
    }
    
    public float getDiscount()
    {
    	return this.discount;
    }
    
    public float getTotal()
    {
    	return this.total;
    }
    
    public float getBalance()
    {
    	return this.balance;
    }
    
    public String getShipVia()
    {
    	return this.shipVia;
    }
    
    public String getTerms()
    {
    	return this.terms;
    }
    
    public String getShipAddress()
    {
    	return this.shipAddress;
    }
    
    public String getShipCity()
    {
    	return this.shipCity;
    }
    
    public String getShipState()
    {
    	return this.shipState;
    }
    
    public String getShipZip()
    {
    	return this.shipZip;
    }
    
    public String getShipPhone()
    {
    	return this.shipPhone;
    }
    
    public String getShipFax()
    {
    	return this.shipFax;
    }
    
    public String getBillAddress()
    {
    	return this.billAddress;
    }
    
    public String getBillCity()
    {
    	return this.billCity;
    }
    
    public String getBillState()
    {
    	return this.billState;
    }
    
    public String getBillZip()
    {
    	return this.billZip;
    }
    
    public String getBillPhone()
    {
    	return this.billPhone;
    }
    
    public String getBillFax()
    {
    	return this.billFax;
    }
}